<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page
	import="com.onlineMIS.common.Common_util,java.util.Date,java.text.SimpleDateFormat"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>禧乐仓连锁店管理信息系统</title>
<%@ include file="../../common/Style.jsp"%>

<script>

$(document).ready(function(){
	parent.$.messager.progress('close'); 	
});

function BSkeyDown(e){

	 var ieKey = event.keyCode;

	 if (ieKey==13){
	   if (event.srcElement.id == "custName"){
		   searchCust(); 
		   event.returnValue=false;
	   }
	 }
}


document.onkeydown = BSkeyDown; 
</script>
</head>
<body>
	<div class="easyui-layout" data-options="fit : true,border : false">
		<div data-options="region:'north',border:false" style="height: 25px;">
			<s:form id="inventorySearchForm"
				action="/action/inventoryOrder!search" theme="simple" method="POST">
			</s:form>
		</div>
		<div data-options="region:'center',border:false">
			<table class="easyui-datagrid"  style="width:95%" data-options="singleSelect:true,border : false">			 	
			   <thead>
				 	<tr align="center" class="PBAOuterTableTitale" height="22">
				 		<th data-options="field:'1',width:80">单据号</th>
				 		<th data-options="field:'2',width:190">客户名称</th>
				 		<th data-options="field:'3',width:90">单据类型</th>	
				 		<th data-options="field:'4',width:140">开始时间</th>			 					 		
				 		<th data-options="field:'5',width:140">过账时间</th>	
				 		<th data-options="field:'6',width:50">导精算</th>	
				 		<th data-options="field:'7',width:50">总数</th>	
				 		<th data-options="field:'8',width:80">批发总额</th>	
				 		<th data-options="field:'9',width:50">代卖</th>	
				 		<th data-options="field:'10',width:50">买断</th>	
				 		<th data-options="field:'11',width:50">调货</th>	
				 		<th data-options="field:'12',width:180">备注</th>		
				 		<th data-options="field:'13',width:70">详情</th>				 						 		
	                </tr>
               </thead>
               <tbody>
               <s:iterator value="formBean.unitReportDetailsVOs" status = "st" id="order" >
				 	<tr>			 		
				 		<td><s:property value="#order.orderId"/></td>	
				 		<td><s:property value="#order.clientName"/></td>		 					 		
				 		<td><s:property value="#order.orderType"/></td>	
				 		<td><s:property value="#order.startTime"/></td> 	
				 		<td><s:property value="#order.completeTime"/></td> 
				 		<td><s:property value="#order.importTimes"/></td>
				 		<td><s:property value="#order.totalQ"/></td>
				 		<td><s:property value="#order.totalWholeSales"/></td>
				 		<td><s:property value="#order.isDaimai"/></td>
				 		<td><s:property value="#order.isMaiduan"/></td>
				 		<td><s:property value="#order.isTransfer"/></td>
				 		<td><s:property value="#order.comment"/><br>*<s:property value="#order.comment2"/></td>
				 		<td><a href="#" onclick="addTab6('<%=request.getContextPath()%>/action/inventoryOrder!loadOrder?formBean.order.order_ID=<s:property value="#order.orderId"/>','单据'+<s:property value="#order.orderId"/>)"><img src='<%=request.getContextPath()%>/conf_files/easyUI/themes/icons/text_1.png' border='0'/></a></td>
				 	</tr>
			 	</s:iterator>
				</tbody>
		 </table>
		</div>
	</div>
</body>
</html>